package com.burst.reptile.modular.monitor.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.burst.reptile.framework.web.controller.BaseController;
import com.burst.reptile.framework.web.entity.Server;
import com.burst.reptile.framework.web.result.Result;

/**
 * 服务器监控
 * @author wujin
 * @date: 2020年6月5日 下午6:06:06
 */
@RestController
@RequestMapping("/monitor/server")
public class ServerController extends BaseController {
	
	@PreAuthorize("@ss.hasPermi('monitor:server:list')")
	@GetMapping()
	public Result<Object> getInfo() throws Exception {
		Server server = new Server();
		server.copyTo();
		return Result.success(server);
	}
}
